<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>评审记录</title>
<link href="<%=request.getContextPath()%>/css/main.css" media="screen"
	rel="stylesheet" type="text/css"
/>
<link href="<%=request.getContextPath()%>/css/simple.css" media="screen"
	rel="stylesheet" type="text/css"
/>
<link href="<%=request.getContextPath()%>/js/prettify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/prettify.js"></script>
<style type="text/css">
#review-record-list {
	width: 100%;
	border: 1px solid #AAAAAA;
	border-collapse:collsapse;
	border-spacing: 0px;
}

thead tr {
	background-color: #CCCCCC;
}

thead th {
	text-align: left;
}

tbody tr {
	background-color: #DDDDDD;
	
}

tbody tr.odd {
	background-color: #FFFFFF;
}
td {
	padding: 4px 4px 4px 4px;
}
td.command {
	text-align: right;
}

td.summary {
	border-top: 1px solid #AAAAAA;
	border-bottom: 2px solid #AAAAAA;
	border-collapse: collapse;
}

tbody tr.last td.summary {
	border-bottom: none;
}

div.tags {
	margin-bottom: 4px;
}
#toolbox {
	padding-bottom: 10px;
}
</style>
</head>
<body>
<div id="toolbox">
<a href="<s:url namespace="/reviewrecord" action="create"/>">新建</a>
<a href="<s:url namespace="/reviewrecord" action="list"/>">全部</a>
</div>
<table id="review-record-list" >
	<thead>
		<tr>
			<th>编号</th>
			<th>文件/类</th>
			<th>修订</th>
			<th>行号</th>
		</tr>
	</thead>
	<tbody>
		<s:iterator value="reviewRecords" status="status">
			<tr class="<s:if test="#status.odd">odd</s:if>">
				<td><a href="<%=request.getContextPath()%>/reviewrecord/<s:property value="id"/>/detail.action"><s:property value="id" /></a></td>
				<td><a href="<%= request.getContextPath() %>/reviewrecord/file/<s:property value="file"/>/list.action"><s:property value="file" /></a></td>
				<td><a href="<%= request.getContextPath() %>/reviewrecord/file/<s:property value="file"/>/<s:property value="revision"/>/list.action"><s:property value="revision"/></a></td>
				<td><s:property value="lineFrom" /><s:if test="lineTo != null">-<s:property value="lineTo" /></s:if></td>
			</tr>
			<tr class="<s:if test="#status.odd">odd</s:if> <s:if test="#status.last">last</s:if>">
				<td colspan="5" class="summary">
					<div class="tags">
						<s:iterator value="tagList">
						<a href="<%= request.getContextPath() %>/reviewrecord/tag/<s:property value="toString()"/>/list.action"><s:property value="toString()"/></a>
						</s:iterator>
					</div>
					<div class="summary">
						<s:property value="comment" />
					</div>
				</td>
			</tr>
		</s:iterator>
	</tbody>
</table>
<s:if test="page > 1">
<a href="<%= request.getContextPath() %>/reviewrecord/page/<s:property value="previousPage"/>/list.action">上一页</a><span> 
</s:if>
<span>[<s:property value="page"/>/<s:property value="totalPages"/>]</span>
<s:if test="page < totalPages">
<a href="<%= request.getContextPath() %>/reviewrecord/page/<s:property value="nextPage"/>/list.action">下一页</a>
</s:if>
</body>
</html>